import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {ProjectByAddressComponent} from "./byAddress/project-by-address.component";
import {ProjectByAddressDetailComponent} from "./byAddress/project-by-address-detail.component";
import {ProjectByDepartmentComponent} from "./byDepartment/project-by-department.component";

const routes: Routes = [
  {
    path: '', children: [
      {path: 'by-address-list', component: ProjectByAddressComponent},
      {path: 'by-address-detail', component: ProjectByAddressDetailComponent},
      {path: 'by-department-list', component: ProjectByDepartmentComponent},
      {path: 'by-department-detail', component: ProjectByAddressDetailComponent},
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class WaterTakeProjectsRoutingModule {
}
